package com.example.dto;

import lombok.Builder;

/**
 * @ClassName: XmlDTO
 * @Author : 13736
 * @Date :2023/7/8  12:11
 * @Description: TODO
 * @Version :1.0
 */
@Builder
public class XmlDTO {

    /**
     * Person : {"Name":"Able, Andrew","DOB":"1977-10-06","Address":{"Street":"6218 Clinton Drive","City":"杭州","State":"TN","Zip":87639}}
     */

    private RootBean Root;

    public RootBean getRoot() {
        return Root;
    }

    public void setRoot(RootBean Root) {
        this.Root = Root;
    }

    @Builder
    public static class RootBean {
        /**
         * Name : Able, Andrew
         * DOB : 1977-10-06
         * Address : {"Street":"6218 Clinton Drive","City":"杭州","State":"TN","Zip":87639}
         */

        private PersonBean Person;

        public PersonBean getPerson() {
            return Person;
        }

        public void setPerson(PersonBean Person) {
            this.Person = Person;
        }

        @Builder
        public static class PersonBean {
            private String Name;
            private String DOB;
            /**
             * Street : 6218 Clinton Drive
             * City : 杭州
             * State : TN
             * Zip : 87639
             */

            private AddressBean Address;

            public String getName() {
                return Name;
            }

            public void setName(String Name) {
                this.Name = Name;
            }

            public String getDOB() {
                return DOB;
            }

            public void setDOB(String DOB) {
                this.DOB = DOB;
            }

            public AddressBean getAddress() {
                return Address;
            }

            public void setAddress(AddressBean Address) {
                this.Address = Address;
            }

            @Builder
            public static class AddressBean {
                private String Street;
                private String City;
                private String State;
                private int Zip;

                public String getStreet() {
                    return Street;
                }

                public void setStreet(String Street) {
                    this.Street = Street;
                }

                public String getCity() {
                    return City;
                }

                public void setCity(String City) {
                    this.City = City;
                }

                public String getState() {
                    return State;
                }

                public void setState(String State) {
                    this.State = State;
                }

                public int getZip() {
                    return Zip;
                }

                public void setZip(int Zip) {
                    this.Zip = Zip;
                }
            }
        }
    }
}
